package com.poetry.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@TableName("poem")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Poem {
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 诗词标题
     */
    private String title;

    /**
     * 创作朝代
     */
    private String dynasty;

    /**
     * 诗词作者
     */
    private String author;

    private Integer authorId;

    /**
     * 诗词文体
     */
    private String kind;

    /**
     * 是否被用户收藏
     */
    @TableField(exist = false)
    private Boolean isLike;

    /**
     * 诗词内容
     */
    private String content;

    /**
     * 诗词释义
     */
    private String translation;

    /**
     * 名人赏析
     */
    private String comment;

    /**
     * 诗词简介
     */
    private String intro;

    /**
     * 难点词标注
     */
    private String annotation;

    /**
     * 诗词背景图片
     */
    private String image;

    /**
     * 分类类别
     */
    private String categories;

    /**
     * 收藏数
     */
    private Integer liked;

    private Integer postsCount;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}
